﻿using System.Collections;
using System.Diagnostics;
using Microsoft.Build.Framework;

namespace NotifyPropertyWeaverTests
{
    public class StubBuildEngine : IBuildEngine
    {
        public void LogErrorEvent(BuildErrorEventArgs e)
        {
            Debug.WriteLine("Error " + e.Message);
        }

        public void LogWarningEvent(BuildWarningEventArgs e)
        {
            Debug.WriteLine("Warning "+ e.Message);
        }

        public void LogMessageEvent(BuildMessageEventArgs e)
        {
            Debug.WriteLine("Message " + e.Message);
        }

        public void LogCustomEvent(CustomBuildEventArgs e)
        {
            Debug.WriteLine("Custom " + e.Message);
        }

        public bool BuildProjectFile(string projectFileName, string[] targetNames, IDictionary globalProperties, IDictionary targetOutputs)
        {
            return true;
        }

        public bool ContinueOnError
        {
            get { return false; }
        }

        public int LineNumberOfTaskNode
        {
            get { return 0; }
        }

        public int ColumnNumberOfTaskNode
        {
            get { return 0; }
        }

        public string ProjectFileOfTaskNode
        {
            get;
            set;
        }

    }
}